import moment from 'moment'

/**
 * 格式化表单日期
 * @param row
 * @param column
 */
export function formatDate (row: any, column: any) {
  const date = row[column.property]
  if (date) {
    return moment(date).format('YYYY-MM-DD HH:mm:ss')
  }
}
